<template>
  <div id="app">
    <!--在Vue.use(VueRouter)之后 vueRouter会在全局帮我们注册两个新的组件-->
    <!--router-link : 相当于是一个a标签-->
    <!--router-view : 相当于组件的占位-->
     <div>
       <router-link to="/A">Go to A</router-link>
       <router-link to="/B">Go to B</router-link>
       <router-link to="/C">Go to C</router-link>
     </div>
     <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'App',

}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
